<?php
    require_once "config.php";
    if($_SERVER['REQUEST_METHOD'] == 'POST'){
        $params = array(
            'u_id'   => $_POST['u_id'],
            'shop_id'   => $_POST['web_id'],
            'type'   => $_POST['type']
        );
        if($params['type'] == 'Report'){
            $data['state'] = 'y';
            $data['info'] = '商户举报成功';
            exit(json_encode($data));
        }else{
            $data['state'] = 'y';
            $data['info'] = '商户拉黑成功';
            exit(json_encode($data));
        }
    }
 ?>
